package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.CarTypeMapper;
import com.whq.entity.CarType;
import com.whq.service.CarTypeService;

@Service(value = "tcCarTypeService")
public class CarTypeServiceImpl implements CarTypeService {

    @Autowired
    private CarTypeMapper<CarType>tcCarTypeMapper;
    
    @Override
    public Integer insertSelective(CarType tcCarType) throws Exception {
           return this.tcCarTypeMapper.insertSelective(tcCarType);
        }

    @Override
    public Integer insertBatch(List<CarType> tcCarType) throws Exception {
           return this.tcCarTypeMapper.insertBatch(tcCarType) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tcCarTypeMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tcCarTypeMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(CarType tcCarType) {
           return this.tcCarTypeMapper.updateByPrimaryKeySelective(tcCarType);
    }

    @Override
    public CarType findById(Object id) {
           return (CarType) this.tcCarTypeMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<CarType> selectByCondition(CarType tcCarType) {
           return (List<CarType>) this.tcCarTypeMapper.selectByCondition(tcCarType);
    }

    @Override
    public Integer selectCountByCondition(CarType tcCarType) {
           return  this.tcCarTypeMapper.selectCountByCondition(tcCarType);
    }

}
